PtrZone
PtrZone Find which heap zone owns a nonrelocatable block
#include <Memory.h> Memory Manager
THz PtrZone(thePtr );
Ptr thePtr ; address of a nonrelocatable memory block
returns address of a 62-byte Zone structure
Given the address of a nonrelocatable memory block, PtrZone tells you in
which heap zone that block resides.
thePtr is the address of a nonrelocatable memory block; i.e., the value
obtained from a prior call to NewPtr.
Returns: the address of a Zone structure. It identifies the heap zone that
contains the relocatable block addressed by thePtr. Use MemError
to see if this return value is meaningful; it will return an
Error Code of:
noErr (0) No error
memWZErr (-111) Illegal operation on a free block